ResPropSetStr(SELF,"InputText",StrFormatStr(MangleSIDToStr(220/*"Sleeping in a hotel in %s will cost $%s, but you'll sleep better than you would in your truck."*/),ResPropGetStr(Player,"nav_cur_city"), IntToDecimalStr(bill,100) ));
}
};
},
GuiButtonGroup("sleep_in_hotel") {
X = 15;
Y = 60;
RadioGroupID = 1;
ScriptID = Script {
@activate {
resid Player;
resid Game;
int capacity;
int remaining;
Game = ResByName("Game");
Player = ResPropGetResID(ResByName("Game"),"game_cur_player");
ResPropSetInt(Player,"player_where_to_sleep",1);
}
};
ChildID = {
GuiButton("sleep_in_hotel_off") {
HorizontalAlign = RIGHTOF;
HorizontalPadding = 6;
StyleID = "gui/bs/radiounsel.gbs";
TextID = Mangle(221/*"Hotel"*/);
FontID = "font/tab_w_on_g.tf";
},
GuiButton("sleep_in_hotel_on") {
HorizontalAlign = RIGHTOF;
HorizontalPadding = 6;
StyleID = "gui/bs/radiosel.gbs";
TextID = Mangle(222/*"Hotel"*/);
FontID = "font/tab_w_on_g.tf";
}
};
},
GuiButtonGroup("sleep_in_truck") {
X = 15;
Y = 80;
RadioGroupID = 1;
ScriptID = Script {
@activate {
resid Player;
resid Game;
int capacity;
int remaining;
Game = ResByName("Game");
Player = ResPropGetResID(ResByName("Game"),"game_cur_player");
ResPropSetStr(Message,"InputText",StrFormatStr(MangleSIDToStr(228/*"You sleep at a hotel in %s and wake up eight hours later. You pay $%s."*/),cur_city, IntToDecimalStr(bill,100) ));
ResPropSetStr(SELF,"InputText",StrFormatStr(MangleSIDToStr(230/*"%s has a lodging tax of %d percent."*/),ResPropGetStr(Player,"nav_cur_city"), lodge_tax ));